/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package regras;

import interfaces.VerificadorDeRegras;

/**
 *
 * @author Matheus
 */
public class verificaSeExisteDigito implements VerificadorDeRegras {
    @Override
    public int regra(String senha) {
        for (char a : senha.toCharArray())
        {
            if (Character.isDigit(a))
            {
                return 5;
            }
        }
        return 0;
    }
    
}
